package com.nanjia.boot.myflow.order.converter;

import com.nanjia.boot.myflow.order.model.entity.Order;
import com.nanjia.boot.myflow.order.model.form.OrderForm;
import com.nanjia.boot.myflow.order.model.vo.OrderVO;
import org.mapstruct.Mapper;

/**
 * 订单主对象转换器
 *
 * @author 周洋
 * @since 2025-07-11 11:49
 */
@Mapper(componentModel = "spring")
public interface OrderConverter{

    OrderForm toForm(Order entity);

    Order toEntity(OrderForm formData);
    OrderVO toVO(Order entity);
}